# Contributor: Jann - Ove Risvik <jann.ove@usaklig.com>
# Maintainer:
pkgname=libibumad
pkgver=1.3.10.2
pkgrel=3
pkgdesc="Interface to ib_umad module (user_mad) library. (InfiniBand)"
options="!check" # No testsuite
url="https://www.openfabrics.org/downloads/management/"
arch="x86 x86_64 ppc64le"
license="GPL-2.0-only OR BSD-2-Clause"
subpackages="$pkgname-dev $pkgname-doc"
source="https://www.openfabrics.org/downloads/management/$pkgname-$pkgver.tar.gz"

prepare() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-static
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="aa2e9038600f6fd9f5cd7c42f6125f25db1504eca040d48f501acf3dcba310f5af50d56fbfe959d1f33b3eacd382f33782077510c7f1a841ae12c5942eb7fa8c  libibumad-1.3.10.2.tar.gz"
